package com.intelligentcar.springboot.service.serverImpl;

import com.intelligentcar.springboot.bean.Driversalary;
import com.intelligentcar.springboot.mapper.DriversalaryMapper;
import com.intelligentcar.springboot.service.DriversalaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DriversalaryServerImpl implements DriversalaryService {

    @Autowired
    private DriversalaryMapper driversalaryMapper;


    @Override
    public List<Driversalary> LookLook(Driversalary driversalary) {
        return driversalaryMapper.LookLook(driversalary);
    }

    @Override
    public List<Driversalary> LookTime(String time) {
        return driversalaryMapper.LookTime(time);
    }

    @Override
    public List<Driversalary> lookPayroll() {
        return driversalaryMapper.lookPayroll();
    }

    @Override
    public int selectPayroll() {
        return driversalaryMapper.selectPayroll();
    }

    @Override
    public int updatePayroll(long id) {
        return driversalaryMapper.updatePayroll(id);
    }

    @Override
    public int updateP(long id, String drivername, String salary, String tax, String insurance, String elsededuct, String practicalSalary, String time, String state) {
        return driversalaryMapper.updateP(id, drivername, salary, tax, insurance, elsededuct, practicalSalary, time, state);
    }

    @Override
    public int deleteP(int id) {
        return driversalaryMapper.deleteP(id);
    }

    @Override
    public int addP(Driversalary driversalary) {
        return driversalaryMapper.addP(driversalary);
    }

    @Override
    public List<Driversalary> Payroll() {
        return driversalaryMapper.Payroll();
    }

}
